﻿//using Microsoft.EntityFrameworkCore;
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
//using Xfm.Core.Auth;

//namespace Xfm.Core
//{
//    public abstract class BaseDbContext : DbContext
//    {
//        public BaseDbContext():base()
//        {
//            App.AppUserType = typeof(BaseUser);
//        }
//        public BaseDbContext(DbContextOptions dbContextOptions) : base(dbContextOptions)
//        {
//            App.AppUserType = typeof(BaseUser);
//        }
//    }
//    public abstract class BaseDbContext<TUser>: BaseDbContext where TUser:BaseUser
//    {
//        public BaseDbContext():base()
//        {
//            App.AppUserType = typeof(TUser);
//        }
//        public BaseDbContext(DbContextOptions dbContextOptions):base(dbContextOptions)
//        {
//            App.AppUserType = typeof(TUser);
//        }
//        public DbSet<TUser> Users { get; set; }
//    }
//}
